package com.testdocs.client.signin;

import com.google.gwt.place.shared.Place;
import com.google.gwt.place.shared.PlaceTokenizer;

public class SignInPlace extends Place {
	UserInfo userInfo;
	
	public SignInPlace(UserInfo userInfo) {
		this.userInfo = userInfo;
	}
	
	public UserInfo getUserInfo() {
		return userInfo;
	}
	
	public static class Tokenizer implements PlaceTokenizer<SignInPlace> {
		@Override
		public String getToken(SignInPlace place) {
			return "signIn";
		}

		@Override
		public SignInPlace getPlace(String token) {
			return new SignInPlace(null);
		}
	}

}
